<div id='roster'>
<%= render(:partial=>'roster', :collection => @roster)   %>
</div>

<!-- Add a buddy: <%=text_field_tag('add_buddy')%> <%=submit_tag 'Add' %><br/> -->

<br/>
<!--
<%=link_to_remote "set presence",
   :url => { :action => "set_presence" },
	:update => { :success => "roster", :failure => "msg" },
	:before => "$('msg').innerHTML='setting presence...';",
	:success => "$('msg').innerHTML='set';"
%>
/
-->

<%=link_to "log out", :action => "log_out" %>

<%= periodically_call_remote(
 :url => { :action => "refresh_roster" },
 :frequency => '10',
 :update => { :success => "roster", :failure => "msg" },
 :before => "$('msg').innerHTML='refreshing...';",
 :success => "$('msg').innerHTML='refreshed';")
%>
